package com.kuang.springclound.service;

import com.kuang.springclound.dao.DeptDao;
import com.kuang.springclound.pojo.SystemDept;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class DeptServiceImpl implements DeptService {
    @Resource
    DeptDao deptDao;

    @Override
    public boolean addDept(SystemDept dept) {
        return deptDao.addDept(dept);
    }

    @Override
    public SystemDept queryById(Long id) {
        return deptDao.queryById(id);
    }

    @Override
    public List<SystemDept> queryAll() {
        return deptDao.queryAll();
    }
}
